/**
 * 
 */
package de.gee.erep.client.ui.view;

import java.util.ArrayList;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

import de.gee.erep.client.ui.displays.CitizenDisplay;
import de.gee.erep.shared.entities.citizen.Citizen;

/**
 * @author Matthew Gee created: 10.05.2011
 */
public class CitizenView implements CitizenDisplay {
	private final VerticalPanel panel;
	private Panel ground;
	private final HandlerManager eventBus;
	private final ListBox box;
	/**
	 * 
	 * @param ground g
	 * @param eventBus e
	 */
	public CitizenView(final Panel ground, final HandlerManager eventBus) {
		panel = new VerticalPanel();
		this.ground = ground;
		this.ground.add(this.asWidget());
		this.eventBus = eventBus;
		this.box = new ListBox();
		fillListBox();
	}

	/**
	 * @param box2
	 */
	private void fillListBox() {
		/*box.addItem(new Label(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Argentina..gif")));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Australia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Austria..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Belarus..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Belgium..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Bolivia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Bosnia-Herzegovina..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Brazil..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Bulgaria..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Canada..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Chile..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/China..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Colombia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Croatia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Cyprus..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Czech-Republic..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Denmark..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Egypt..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Estonia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Finland..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/France..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Germany..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Greece..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Hungary..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/India..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Indonesia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Iran..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Ireland..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Israel..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Italy..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Japan..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Latvia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Lithuania..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Malaysia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Mexico..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Montenegro..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Netherlands..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/New-Zealand..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/North-Korea..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Norway..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Pakistan..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Paraguay..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Peru..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Philippines..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Poland..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Portugal..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Republic-of-China-Taiwan..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Republic-of-Macedonia-FYROM..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Republic-of-Moldova..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Romania..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Russia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Saudi-Arabia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Serbia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Singapore..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Slovakia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Slovenia..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/South-Africa..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/South-Korea..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Spain..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Sweden..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Switzerland..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Thailand..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Turkey..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Ukraine..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/United-Arab-Emirates..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/United-Kingdom..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Uruguay..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/USA..gif"));
		box.addItem(new Image("/AnotherErepublikTool/war/Ressources/gfx/Flags_small/Venezuela..gif"));*/
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see de.gee.erep.client.ui.displays.GenericDisplay#asWidget()
	 */
	@Override
	public Widget asWidget() {
		return panel.asWidget();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * de.gee.erep.client.ui.displays.CitizenDisplay#setData(java.util.ArrayList
	 * )
	 */
	@Override
	public void setData(final ArrayList<Citizen> result) {
		
	}

}
